<template>
  <div>
    <div class="payHeader"><img src="@/assets/图像 3.png" alt="" />支付成功</div>
    <h1>深圳市计算机系统有限公司</h1>
    <div class="price">
      <span class="glyphicon glyphicon-yen" aria-hidden="true"></span><span class="rmb"> ￥</span>{{qqCode}}
    </div>
    <div  class="btnPosition">
    <img src="@/assets/组 8.png" alt="" @click="payFinsh">
    </div>
  </div>
</template>

<script>
import '../assets/js/adaptation'
export default {
  data(){
     return {
       qqCode:'',
       qqvalue:''
     }
  },
    methods:{
        payFinsh(){
            this.$router.push({path:'/payAfter',query:{ qqCode: this.qqCode ,qqvalue:this.qqvalue}})
        }
    },
      watch:{
    $route:{
       immediate: true,
          handler() {
        if (this.$route.path == "/payFinsh") {
        this.qqCode = this.$route.query.qqCode;
         this.qqvalue = this.$route.query.qqvalue;
        }
      },
    }
  }
};
</script>

<style scoped lang="less">
.payHeader {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.75rem;
  height: 1.8rem;
  margin: 1.875rem auto;
  font-size: 0.3rem;
  color: #00C721;
  img {
    width: 2rem;
    height: 2rem;
  }
}
h1 {
  font-size: 0.4rem;
  font-weight: 250;
  text-align: center;
}
.price {
  .rmb {
    font-size: 0.5rem;
    padding-bottom: 10px;
  }
  font-size: 0.8rem;
  text-align: center;
  font-weight: bold;
}
.btnPosition {
  position: absolute;
  bottom: 3.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3.75rem;
  img {
    width: 4rem;
  }
}
</style>